package com.example.terminalservice.controller;

import com.example.terminalservice.common.MenuTypeEnum;
import com.example.terminalservice.common.Result;
import com.example.terminalservice.common.StatusEnum;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 28142
 * @description CommonController
 * @date 2023/8/10 10:23
 */
@RestController
@RequestMapping("/common")
public class CommonController {
    @GetMapping("/status")
    public Result getStatus() {
        return Result.success(StatusEnum.getStatusEnum());
    }

    @GetMapping("/menuType")
    public Result getMenuType() {
        return Result.success(MenuTypeEnum.getMenuTypeEnum());
    }
}
